﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using TowerDefense.Towers;

namespace TowerDefense
{
    public class Player
    {
        public Player()
        {
        }
    
        public int Resources
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public String Name
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public double Health
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public int Score
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public List<Tower> Towers
        {
            get
            {
                return _towers;
            }
            set
            {
                _towers = value;
            }
        }

        private List<Tower> _towers = new List<Tower>();

        public void Update(GameTime gameTime)
        {
            foreach (Tower tower in this.Towers)
            {
                tower.Update(gameTime);
            }
        }

        public void Draw(SpriteBatch sb)
        {
            foreach (Tower tower in this.Towers)
            {
                tower.Draw(sb);
            }
        }
    }
}
